package com.ayu.shortlink.distribute.dao.mapper;

import com.ayu.shortlink.distribute.dao.entity.CouponTemplateDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CouponTemplateMapper extends BaseMapper<CouponTemplateDO> {
    Long deductCouponTemplateStock(@Param("stock")Long stock,
                                      @Param("shopNumber") Long shopNumber,
                                      @Param("couponTemplateId") Long couponTemplateId);
}
